/** Concrete implementation of the Filter interface
 *  used to filter Session objects from a Repository
 *
 *  @author Scott Monahan
 *  @version $Id$
 *  
 *  File last changed on $Date:$ by $Author:$ in $Rev:$
 *
 */

package info637.pprc.repository;

import info637.pprc.model.Session;

public class SessionFilter implements IFilter<Session> {
	
	private String sessionId = null;
	
	public SessionFilter(String sessionId) {
		
		this.sessionId = sessionId;
	}
	
	public boolean matches(Session in) {

		if (in.getSessionId().equalsIgnoreCase(sessionId)) {
			
			return true;
			
		} else {
			
			return false;
		}
	}
}
